import { createRouter, createWebHistory } from "vue-router";

const routes = [
    
    {
        path: '/detail',
        alias: '/detail',
        component: () => import(/* chunkName user */'../components/template/custom.vue')
    },
    {
        path: '/login',
        alias: '/sign',
        component: () => import(/* chunkName user */'../views/user/index.vue')
    }, {
        path: '/set',
        alias: '/setting',
        component: () => import(/* chunkName set */'../views/set/index.vue')
    }, {
        path: '/user',
        alias: '/usr',
        component: () => import(/* chunkName user */'../views/about/index.vue')
    }, {
        path: '/',
        alias: '/index',
        component: () => import(/* chunkName user */'../views/dir/index.vue')
    }, {
        path: '/children/detail',
        alias: '/hild/detail',
        component: () => import(/* chunkName user */'../views/detail/index.vue')
    },{
        path: '/count',
        alias: '/tongji',
        component: () => import(/* chunkName user */'../views/count/index.vue')
    },{
        path: '/config',
        alias: '/peizhi',
        component: () => import(/* chunkName user */'../views/field/index.vue')
    },{
        path: '/sys',
        alias: '/system',
        component: () => import(/* chunkName user */'../views/system/index.vue')
    }
];

const router = createRouter({
    history: createWebHistory("/"),
    routes,
})
export default router